home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14214 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Q:Hex to Decimal?
  5. Date: 12 Apr 1996 11:27:10 -0500
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4km08u$qgo@solutions.solon.com>
  8. References: <DpqLyJ.8Jy@rci.ripco.com> <4klr9f$29d@news1.mnsinc.com>
  9. Reply-To: seebs@solon.com
  10. NNTP-Posting-Host: solutions.solon.com
  11.  
  12. In article <4klr9f$29d@news1.mnsinc.com>,
  13. Szu-Wen Huang <huang@mnsinc.com> wrote:
  14. >Martin Ambuhl (mambuhl@ripco.com) wrote:
  15. >:         sprintf(target_string,"x",(unsigned)your_integer);
  16.  
  17. >Which prints an "x" to your string and formats your hard disk if you
  18. >have a mean C compiler.  :)  Try "%x" as the format string.
  19.  
  20. Actually, it can't do anything hostile; *printf guarantee that extra arguments
  21. are ignored.
  22.  
  23. -s
  24. -- 
  25. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  26. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  27. FUCK the communications decency act.  Goddamned government.  [literally.]
  28. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  29.